home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / tool-inc.zip / TOLOWER.INC < prev    next >
Text File  |  1989-06-02  |  610b  |  25 lines

  1.  
  2. (*
  3.  * Copyright 1987, 1989 Samuel H. Smith;  All rights reserved
  4.  *
  5.  * This is a component of the ProDoor System.
  6.  * Do not distribute modified versions without my permission.
  7.  * Do not remove or alter this notice or any other copyright notice.
  8.  * If you use this in your own program you must distribute source code.
  9.  * Do not use any of this in a commercial product.
  10.  *
  11.  *)
  12.  
  13. function tolower(s: anystring): anystring;
  14. var
  15.    i: integer;
  16.  
  17. begin
  18.  
  19.    for i := 1 to length(s) do
  20.       if (s[i] >= 'A') and (s[i] <= 'Z') then
  21.          s[i] := chr( ord(s[i]) + 32 );
  22.  
  23.    tolower := s;
  24. end;
  25.